package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap32 extends OSMap
	{
		public function OSMap32()
		{
			super();

			var ground:OSGround = new OSGround(0, 640, 960, 140, 0, false);
			ground.setNoErosionUp([23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]);
			ground.setNoErosionDown([288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 308, 309, 310, 311, 312, 313, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335]);
			ground.setNoErosionLeft([0, 48, 96, 144, 192, 240, 288]);
			ground.setNoErosionRight([47, 95, 143, 191, 239, 287, 335]);
			ground.erode();
			add(ground);

			ground = new OSGround(0, 780, 100, 300, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4]);
			ground.setNoErosionDown([70, 71, 72, 73, 74]);
			ground.setNoErosionLeft([0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70]);
			ground.setNoErosionRight([4, 9, 14, 19, 24, 29, 34, 39]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 780, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 800, 140, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 820, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([0, 1, 2, 3, 4]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 840, 100, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4]);
			ground.setNoErosionDown([0, 1, 2, 3]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 860, 80, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionDown([0, 1, 2]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 880, 60, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2]);
			ground.setNoErosionDown([0, 1]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 900, 40, 20, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.setNoErosionDown([0]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 920, 20, 20, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(400, 780, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([1, 2, 3, 4]);
			ground.erode();
			add(ground);

			ground = new OSGround(420, 800, 80, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionDown([1, 2]);
			ground.erode();
			add(ground);

			ground = new OSGround(440, 820, 40, 20, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.erode();
			add(ground);

			var house:OSHouse = new OSHouse(460, 420);
			addBackground(house.background);
			addForeground(house);

			ground = new OSGround(660, 780, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionRight([7]);
			ground.erode();
			add(ground);

			ground = new OSGround(680, 800, 140, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6]);
			ground.setNoErosionRight([6]);
			ground.erode();
			add(ground);

			ground = new OSGround(700, 820, 120, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([1, 2, 3, 4, 5]);
			ground.setNoErosionRight([5]);
			ground.erode();
			add(ground);

			ground = new OSGround(720, 840, 100, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4]);
			ground.setNoErosionDown([1, 2, 3, 4]);
			ground.setNoErosionRight([4]);
			ground.erode();
			add(ground);

			ground = new OSGround(740, 860, 80, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3]);
			ground.setNoErosionDown([1, 2, 3]);
			ground.setNoErosionRight([3]);
			ground.erode();
			add(ground);

			ground = new OSGround(760, 880, 60, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2]);
			ground.setNoErosionDown([1, 2]);
			ground.setNoErosionRight([2]);
			ground.erode();
			add(ground);

			ground = new OSGround(780, 900, 40, 20, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.setNoErosionDown([1]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

			ground = new OSGround(800, 920, 20, 20, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionRight([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(820, 780, 140, 300, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6]);
			ground.setNoErosionDown([98, 99, 100, 101, 102, 103, 104]);
			ground.setNoErosionLeft([0, 7, 14, 21, 28, 35, 42, 49]);
			ground.setNoErosionRight([6, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104]);
			ground.erode();
			add(ground);

		}
	}
}
